<template>
  <div>
    <!--导航栏-->
    <Reception></Reception>
    <div>
      <!--轮播图-->
      <div class="chart">
        <el-carousel :interval="5000" arrow="always" height="500px" class="carousel">
          <el-carousel-item v-for="item in 4" :key="item" class="carousel_item">
            <h3>{{ item }}</h3>
          </el-carousel-item>
        </el-carousel>
      </div>
      <!--商家推荐-->
      <div class="recommend">
        <div class="recommend_title">Recommend</div>
        <div class="recommend_title">商 品 推 荐</div>
        <div class="im">
          <div v-for="item in 5" :key="item" class="ima" @click="recommend">
            <img src="https://t7.baidu.com/it/u=1699747003,4225413511&fm=193&f=GIF" alt="" class="imga">
            <div class="imgb">名称</div>
          </div>
        </div>
        <div><el-link :underline="false" type="warning" class="mores">查看更多>></el-link></div>
      </div>
      <!--新闻公告-->
      <div class="recommend">
        <div class="recommend_title">HOME NEWS</div>
        <div class="recommend_title">新 闻 公 告</div>
        <div class="imb">
          <div v-for="item in 5" :key="item" class="ima">
            <img src="https://t7.baidu.com/it/u=1699747003,4225413511&fm=193&f=GIF" alt="" class="imga">
            <div class="imgb">名称</div>
          </div>
        </div>
        <div><el-link :underline="false" type="warning" class="mores">查看更多>></el-link></div>
      </div>
      <div class="bott">
      </div>

    </div>
  </div>
</template>

<script>
import Reception from "../../components/Reception";

export default {
  components: {
    'Reception': Reception
  },
  methods: {
    recommend(){
      this.$router.push('/recommend')
    }
  }
}
</script>

<style scoped>
.carousel_item{
  line-height: 300px;
  margin: 0;
  background-color: #99a9bf;
  text-align: center;
}
.carousel{
  margin: 0 10%;
}
.recommend{
  text-align: center;
  margin-top: 50px;
}
.recommend_title{
  font-size: 28px;
  padding-bottom: 10px;
}
.imga{
  width: 500px;
  height: 300px;
}
.imgb{
  font-size:30px;
}
.im{
  display: flex;
  justify-content: space-between;
  margin: 0 10%;
  flex-wrap: wrap;
}
.ima{
  padding-bottom: 20px;
}
.mores{
  font-size: 20px;
}
.imb{
  display: flex;
  justify-content: space-around;
  margin: 0 11%;
  flex-wrap: wrap;
}
.bott{
  width:100%;
  height: 100px;
  background-color: #FF8E01;
  margin-top: 30px;
  text-align: center;
}





</style>